package com.en.response;

/**
 * ClassName: AppException
 * Package: com.tencent.wxcloudrun.response
 * Description:
 *
 * @Date: 2023/1/22 9:03 AM
 * @Author: wht
 */
public class AppException extends RuntimeException {

    //    private int code;
//    private String msg;
    ErrorCodeMsgEnum errorCodeMsgEnum;


//    public AppException(ErrorCodeMsgEnum errorCodeMsgEnum) {
//        super();
//        this.code = errorCodeMsgEnum.getCode();
//        this.msg = errorCodeMsgEnum.getMsg();
//
//    }

    public AppException(ErrorCodeMsgEnum errorCodeMsgEnum) {
        super();
        this.errorCodeMsgEnum = errorCodeMsgEnum;
    }

    public ErrorCodeMsgEnum getErrorCodeMsgEnum() {
        return this.errorCodeMsgEnum;
    }

//    public AppException(int code, String msg) {
//        super();
//        this.code = code;
//        this.msg = msg;
//
//    }

//    public int getCode() {
//        return this.code;
//    }
//
//    public String getMsg() {
//        return this.msg;
//    }

}

